﻿<ol class="breadcrumb">
    <li><a ui-sref="apps.list">应用列表</a></li>
    <li><a>编辑</a></li>
</ol>

<form ng-submit="save()">
    <div class="text-danger">
        {{error_message}}
    </div>
    <div class="form-group">
        <label for="inputAppName">应用名称 </label>
        <input type="text" class="form-control" id="inputAppName" placeholder="应用名称 (必填)" maxlength="50"
               ng-model="app.name">
    </div>
    <div class="form-group">
        <label for="inputAppId">应用Id </label>
        <input type="text" class="form-control" id="inputAppId" placeholder="应用Id（必填）" maxlength="36"
               ng-model="app.id" ng-disabled="true">
    </div>
    <div class="form-group">
        <label for="inputSecret">密钥</label>
        <input type="text" class="form-control" id="inputSecret" placeholder="密钥" maxlength="36"
               ng-model="app.secret">
    </div>
    <div class="form-group">
        <label>
            启用
            <input type="checkbox" class="form-control" ng-model="app.enabled">
        </label>
    </div>
    <button type="submit" class="btn btn-primary">确定</button>
    <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
</form>
